import java.io.File;

public class Demo4 {
    public static void main(String[] args) {
        File file=new File("./Test-dir");
        File dest=new File("./Test222");
        file.renameTo(dest);
    }
}
